import { ListItemModel } from '@/interface';

// 订单状态
export enum OrderStatusEnum {
  UNPAID = 1,
  WAITING_TO_CONFIRM = 2,
  WAITING_TO_SHIP = 3,
  SHIPPING = 4,
  SHIPPED = 5,
  COMPLETED = 6,
  CANCELED = 7,
  ALL = '',
}
export const orderStatusList: ListItemModel<OrderStatusEnum>[] = [
  { label: '待支付', value: OrderStatusEnum.UNPAID, color: 'cyan' },
  { label: '待确认', value: OrderStatusEnum.WAITING_TO_CONFIRM, color: 'blue' },
  { label: '待发货', value: OrderStatusEnum.WAITING_TO_SHIP, color: 'purple' },
  { label: '发货中', value: OrderStatusEnum.SHIPPING, color: 'pink' },
  { label: '待收货', value: OrderStatusEnum.SHIPPED, color: 'orange' },
  { label: '已完成', value: OrderStatusEnum.COMPLETED, color: 'green' },
  { label: '已取消', value: OrderStatusEnum.CANCELED, color: 'red' },
  { label: '全部', value: OrderStatusEnum.ALL },
];

// 审批申请状态
export enum ApprovalApplyStatusEnum {
  UNAUDITED = 1,
  APPROVED = 2,
  REJECTED = 3,
}
export const approvalApplyStatusList: ListItemModel<ApprovalApplyStatusEnum>[] = [
  { label: '未审核', value: ApprovalApplyStatusEnum.UNAUDITED, color: 'blue' },
  { label: '已通过', value: ApprovalApplyStatusEnum.APPROVED, color: 'green' },
  { label: '已拒绝', value: ApprovalApplyStatusEnum.REJECTED, color: 'red' },
];

// 订单流水类型
export enum SalesOrderFlowTypeEnum {
  COLLECTION = 1,
  REFUND = 2,
}
export const salesOrderFlowTypeList: ListItemModel<SalesOrderFlowTypeEnum>[] = [
  { label: '收款', value: SalesOrderFlowTypeEnum.COLLECTION },
  { label: '退款', value: SalesOrderFlowTypeEnum.REFUND },
];
